package com.wanlian.router.net.netty2.msg.Device;

import com.wanlian.router.net.netty2.msg.Device.model.NetDevice;
import com.wanlian.router.utils.JsonStringUtil;
import com.wanlian.router.net.netty2.msg.BaseMsg;
import com.wanlian.router.net.netty2.msg.MsgType;

import java.util.List;

/**
 * 获取黑名单
 */
public class BlackDeviceReply extends BaseMsg {

    private List<NetDevice> devices;

    public BlackDeviceReply() {
        super();
        setType(MsgType.DEVICE_BLACKLIST_REP);
    }

    public List<NetDevice> getDevices() {
        return devices;
    }

    public void setDevices(List<NetDevice> devices) {
        this.devices = devices;
        this.setContent(JsonStringUtil.writeValueAsString(devices));
    }
}
